﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace OASystem.Controllers
{
    [App_Start.LoginFilterAtrribute]
    public class MenusController : Controller
    {
        //
        // GET: /Menu/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Insert()
        {

            return View();
        }


        public JsonResult InsertMenu(string Name, bool IsParent, string Url, string ParentId)
        {

            var result = new BLL.MenusManager().Add(Name, IsParent, Url, ParentId);
            return Json(result);
        }

 
    }
}
